(function(E, T, $){
var selection = E.mod('Selection');
	testName = 'Link',
	title = '插入超链接',
	setValue = '<span id="_testinnerLink"></span>',
	dom = null,
	node = null,
	cmds = [
		[1500, {fun: function(){
			dom = E.get('document');
			dom.body.innerHTML=setValue;
			node = dom.getElementById('_testinnerLink');
			selection.selectNode(node,false);
		}}],
		[100, {name : '#demo-Link', type: 'mouseover'}],
		[500, {name : '#demo-Link a', type: 'click'}],
		[500, {fun: function(){
			var panel = E.plugin(testName).panel;
			panel.find('input[name=text]').val('');
			panel.find('input[name=url]').val('http://www.baike.com');
		}}],
		[500, {name: '#panel_Link :submit', type: 'click'}],
		[500, {fun: function(self){
			var panel = E.plugin(testName).panel;
			panel.find('input[name=text]').val('测试插入链接');
			panel.find('input[name=url]').val('http://www.baike.com');
		}}],
		[500, {name: '#panel_Link :submit', type: 'click'}]
	];

T.addTest(testName, cmds, title);
})(jQEditor, AutoTest, jQuery);